A library providing access to all sorts of system information.
Linux • macOS • Windows • NetBSD • FreeBSD • Android • OpenWrt
Disclaimer
libmacchina utilizes unsafe code in the form of calls to system libraries that haven't been natively implemented in Rust, we do this for performance reasons.
Usage
Add the following to your project's Cargo.toml file:
= "7"
Notes
On distributions like openSUSE that use the ndb
RPM database format, librpm
(which is usually provided by the rpm-devel
package) is required for the RPM
package count readout to work.
Examples
// Let's import two of the several available types.
use ;